package li.webqq.api;

import li.http.Request;
import li.webqq.Const;
import li.webqq.util.StringUtil;

/**
 * @author 明伟
 */
public class Login2Request extends Request implements Const {
    public Login2Response execute() {
        String r = StringUtil.build(R_LOGIN2, getCookie("ptwebqq"));

        super.setUrl(URL_LOGIN2);
        super.setReferer(URL_PROXY);
        super.setContentType(FORM_URLENCODED);

        super.setField("r", StringUtil.encode(r));
        super.setField("clientid", CLIENT_ID);
        super.setField("psessionid", "null");

        return super.execute(new Login2Response());
    }
}